<?php if ($this->session->flashdata('error')): ?>
<div class="alert alert_red">
    <img height="24" width="24" src="<?php echo base_url(); ?>/static/backend/images/icons/small/white/Alarm%20Bell.png">
    <?php echo $this->session->flashdata('error'); ?>
</div>
<?php endif; ?>

<?php if (validation_errors()): ?>
<div class="alert alert_red">
    <img height="24" width="24" src="<?php echo base_url(); ?>/static/backend/images/icons/small/white/Alarm%20Bell.png">
    Vui lòng điền đầy đủ thông tin.
    <?php //echo validation_errors(); ?>
</div>
<?php endif; ?>

<?php if ( ! empty($messages['error'])): ?>
<div class="alert alert_red">
    <img height="24" width="24" src="<?php echo base_url(); ?>/static/backend/images/icons/small/white/Alarm%20Bell.png">
    <?php echo $messages['error']; ?>
</div>
<?php endif; ?>

<?php if ($this->session->flashdata('notice')): ?>
<div class="alert alert_blue">
    <img height="24" width="24" src="<?php echo base_url(); ?>/static/backend/images/icons/small/white/Alert%202.png">
    <?php echo $this->session->flashdata('notice');?>
</div>
<?php endif; ?>

<?php if ( ! empty($messages['notice'])): ?>
<div class="alert alert_blue">
    <img height="24" width="24" src="<?php echo base_url(); ?>/static/backend/images/icons/small/white/Alert%202.png">
    <?php echo $messages['notice']; ?>
</div>
<?php endif; ?>

<?php if ($this->session->flashdata('success')): ?>
<div class="alert alert_green">
    <img height="24" width="24" src="<?php echo base_url(); ?>/static/backend/images/icons/small/white/Alert.png">
    <?php echo $this->session->flashdata('success'); ?>
</div>
<?php endif; ?>

<?php if ( ! empty($messages['success'])): ?>
<div class="alert alert_green">
    <img height="24" width="24" src="<?php echo base_url(); ?>/static/backend/images/icons/small/white/Alert.png">
    <?php echo $messages['success']; ?>
</div>
<?php endif; ?>